/*-------------------------------------------------------- 
* Module Name : OLInfoPanel
* Version : 1.0
* 
* Software Name : Qt App Template
* Version : 1.0
*
* Copyright � 2010 � 2011 France T�l�com
* This software is distributed under the LGPL v2.1 license,
* the text of which is available at http://www.gnu.org/licenses/lgpl-2.1.html
* or see the "LICENSE.txt" file for more details.
*
*--------------------------------------------------------
* File Name   : OLInfoPanel.h
*
* Created     : 07 June 2011
* Author(s)   : Omer Saleem
*
* Description :
* UI object for providing additional information such as
* time/date. Provides the detailed view when the info button
* OLInfoButton is clicked.
*
*--------------------------------------------------------
* 1.0 - First open source release
*
*/

#ifndef OLINFOPANEL_H
#define OLINFOPANEL_H

#include <QWidget>

class OLInfoPanel : public QWidget
{
    Q_OBJECT
    Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)

public:
    explicit OLInfoPanel(QWidget *parent = 0);

    void setOpacity(qreal opacity);
    qreal opacity();

public slots:
    void handlePortrait();
    void handleLandscape();

protected:
    // from QWidget
    virtual void paintEvent(QPaintEvent* event);
    virtual void timerEvent(QTimerEvent *event);

private:
    qreal m_opacity;
};

#endif // OLINFOPANEL_H
